strong number program in python